$(function () {
    var courseId = $("#courseId").val();
    getLiveCourseCatalogData(courseId);
});

/**
 * 加载直播课程目录
 * @param courseId 课程ID
 */
function getLiveCourseCatalogData(courseId) {
    setTimeout(function () {
        $.ajax({
            url: baseloaction +'/mobile/course/findLiveCatalog',
            type:'post',
            dataType:'html',
            data:{
                'courseId':courseId
            },
            success:function (result) {
                $("#live-course-catalog-box").html(result);
            }
        });
    },0);
}